def self.decode_response(response)
  response = JSON.parse(response.body)
  return response if response.empty?
  # Don't alter if it's a async operation
  return response if response['name'].include? '/operations/'

  response['name'] = response['name'].split('/').last
  response
end

def decode_response(response)
  self.class.decode_response(response)
end
